import { F } from '../utils/http'
const { GET, POST } = F('dictionary/')
class DictionaryApi {
  constructor() {}
  search = (id) => GET('search', { id })
  add = (req) => POST('add', req)
  update = (req) => POST('update', req)
  remove = (id) => GET('remove', { id })
  enums = (id) => GET('enums', { id })
}
export default new DictionaryApi()
